package day4.作业1026.作业04;

public class Pilot {
    private String name;

    public Pilot(String name) {
        this.name = name;
    }

    public boolean kaifeiji(Plane p){
       if(p.getWeight()>1000) {
            p.fly();
            p.jiashu();
            p.jiangluo();
           System.out.println("飞机起飞加速降落正常");
           return true;
        }else {
           System.out.println("飞机高度太低");
       }
      return false;
    }
}
